package com.panshi.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
public class AnswersController {

    /**
     * 主页
     * @param model
     * @return
     */
    @RequestMapping("/answers_main")
    public String answersMain(Model model){
        model.addAttribute("wd","wd");
        return "answers/answers_main";
    }


    /**
     * 个人详情
     */
    @GetMapping("/answers_ptl/{id}")
    public String answersParticulars(@PathVariable String id){
        System.out.println(id);
        return "answers/answers_particulars";
    }


}
